list_x = [1, 0, 1, 0, 0, 1]
list_u = ['a', 'B', 'c', 'E']

# 过滤掉所有的0
r = filter(lambda x: True if x == 1 else False, list_x)
print(list(r))
